package com.ht.aems.fesmodel;

import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * @author Dong Shufeng
 * Date: 2007-4-15
 * Time: 15:20:54
 */
public class OriginalByteData implements Serializable {
    public static final String TABLE_NAME = "AEMS_ORIGINALDATA";
    public static final int TYPE_SENT = 0;
    public static final int TYPE_RECEIVED = 1;
    int commId;
    int type;
    byte[] data;
    String msg = "";
    long timestamp;

    public OriginalByteData(int type, int commId, byte[] data) {
        this.type = type;
        this.commId = commId;
        this.data = data;
        this.timestamp = System.currentTimeMillis();
    }

    public OriginalByteData() {
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getCommId() {
        return commId;
    }

    public void setCommId(int id) {
        this.commId = id;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }


    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
